﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MISAPP.MISInterface;


public partial class View_CFG_CFGAC : ViewAC//System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        iAutoComplete ac = new MISAPP.Classify.Service.Service_CFG001();
        PutAutoCompleteData(ac);
        //string qry = Request.QueryString["q"].ToString();
        //if (string.Empty == qry)
        //{
        //    return;
        //}
        //MISAPP.Classify.Service.Service_CFG001 cfg = new MISAPP.Classify.Service.Service_CFG001();
        //System.Data.DataTable dt =  cfg.GetProjectInfo(qry);
        //if ((dt == null) || (dt.Rows.Count.Equals(0)))
        //{
        //    Response.Write(String.Format("{0}|{1}", "No match", "No match"));
        //    return;
        //}
        //List<string> lst = new List<string>();
        //int i = 0;
        //bool isOutPut = false;
        //foreach (System.Data.DataRow row in dt.Rows)
        //{
        //    i++;
        //    lst.Add(String.Format("{0}|{1}", row[0], row[1]));
        //    if (i.Equals(10))
        //    {
        //        Response.Write(String.Join(Environment.NewLine, lst.ToArray()));
        //        isOutPut = true;
        //        break;
        //    }            
        //}
        //if((lst.Count > 0 )& (isOutPut == false))
        //{
        //    Response.Write(String.Join(Environment.NewLine, lst.ToArray()));
        //}
    }
}
